export const login = data => {
  return new Promise((resolve, reject) => {
    let mockData = {
      data: '登录成功'
    }
    resolve(mockData)
  })
}

export const register = data => {
  return new Promise((resolve, reject) => {
    let mockData = {
      data: '注册成功'
    }
    resolve(mockData)
  })
}

export const findPwd = data => {
  return new Promise((resolve, reject) => {
    let mockData = {
      data: '重置成功'
    }
    resolve(mockData)
  })
}

export const getUserInfo = data => {
  return new Promise((resolve, reject) => {
    let mockData = {
      data: {
        userId: '001',
        username: '小卫',
        avator: ''
      }
    }
    resolve(mockData)
  })
}

export const logout = data => {
  return new Promise((resolve, reject) => {
    let mockData = {
      data: '退出成功'
    }
    resolve(mockData)
  })
}
